<?php
if(!isset($GLOBALS['_vars'])) $GLOBALS['_vars'] = array(); 
$fields = array();
?><!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>苏萍奖学金-网上申请</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="aplus-terminal" content="1"/>
<link href="/hyxt/m/mcss/style.css" rel="stylesheet" type="text/css">
<script src="/js/sfyzxx_jxj.js"></script>
<script language="javascript" src="js/jquery-1.7.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/revealm.css">
<link rel="stylesheet" type="text/css" href="css/scimg.css">
<script language="javascript" src="js/jquery.reveal.js"></script>
<script type="text/javascript" >
  function tj(){
	  alert("请首先填写并保存第一步");
	  window.scrollTo(10,100); 
       return false;
  }
 </script>
<script type="text/javascript" src="/hyxt/pc/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="/js/validate-1.14.0.min.js"></script>
<script type="text/javascript" src="/js/jxj.js"></script>
</head>
<body>
<div class="banner">
	<div class="images">
    <a href="#" data-reveal-id="myModal2" data-animation="none" >
 <?php 
 $face = $cfg_ml->fields['face'];
     if($face!=''){ echo "<img   src='$face' style='_margin-top:expression(( 180 - this.height ) / 2);cursor:pointer'  />\r\n";
	 }
  else echo "<img   src='/hyxt/pc/images/img_01.png' style='_margin-top:expression(( 180 - this.height ) / 2);cursor:pointer'   />\r\n";	
       			?>   </a>     
    </div>
    <p class="name"><script type="text/javascript">
           	var now=(new Date()).getHours();
			if(now>0&&now<=6){
				document.write("午夜好，");
			}
			else if(now>6&&now<=9){
				document.write("早上好，");
			}
			else if(now>9&&now<=11){
				document.write("上午好，");
			}else if(now>11&&now<=14){
				document.write("中午好，");
			}else if(now>14&&now<=18){
				document.write("下午好，");
			}else{
				document.write("晚上好，");
			}
			</script><?php echo $cfg_ml->M_UserName?>，<a href="../member/index_dom_jxj.php?fmdo=login&dopost=exit#">[退出]</a></p>
</div>
<div class="main">
	<div class="member-tab wssq-tab">
	<ul class="member-menu" style="width:6.78rem;">
    	<li><a href="indexm_jxj.php" class="member-on" >网上申请</a></li>
    	<li><a  href="content_listm_jxj.php?channelid=28"  target="_self"  >信息管理</a></li>
    	<li><a  href="zhuangtai_listm_jxj.php?channelid=28"  target="_self"   >状态查询</a></li>
    	<li><a  href="edit_baseinfom_jxj.php?channelid=28"  target="_self"   >账户信息</a></li>
    </ul>
    <div class="member-bot wssq-bot">
	 <!-- <img src="/images/3buzhou.png"  width="100%"/> -->
		<link rel="stylesheet" type="text/css" href="/hyxt/model-head20211227/css/m-jz.css"/>
		<div class="buzhou">
			<h1>网上申请<span id="title-3">3</span>步骤</h1>
			<div style="clear: both;"></div>
			<ul>
				<li class="buzhou1">
					<img src="/hyxt/model-head20211227/images/buzhou1.png" alt="步骤1">
					<p>在“网上申请”页面分布填写信息并保存，可以对已填写信息进行修改，缺少的信息进行补填。</p>
				</li>
				<div class="jiantou1 jiantou">
					<img src="/hyxt/model-head20211227/images/jindu.png" >
				</div>
				<li class="buzhou2">
					<img src="/hyxt/model-head20211227/images/buzhou2.png" alt="步骤2">
					<p>申请表填写完成，确认没问题后，在“信息管理”页点击“提交”按钮提交申请。<span id="zhu">注：申请表提交后则不可以对信息进行任何修改。</span></p>
				</li>
				<div class="jiantou2 jiantou">
					<img src="/hyxt/model-head20211227/images/jindu.png" >
				</div>
				<li class="buzhou3">
					<img src="/hyxt/model-head20211227/images/buzhou3.png" alt="步骤4">
					<p>由工作人员审核筛查申请信息，最终审核结果会在“状态查询”页显示。</p>
				</li>
			</ul>
			<div style="clear: both;"></div>
		</div>
		<div style="clear: both;"></div>
    	<div class="member-bot-1" id="member-top1">
            <div class="wssq-form">
            	<p>基本信息</p>
 <form class="wssq-jbxx" name="addcontent" action="jxjdbm_add.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();" id="jxjfrom">
         <input type="hidden" name="dopost" value="save" />
          <input type="hidden" name="channelid" value="28" />
    <input type='hidden' name='step' value='1' />
<input type='hidden' name='dede_addonfields' value="xingming,text;xingbie,radio;yuanxi,text;minzu,text;nianling,int;chushengnianyue,datetime;zhengzhimianmao,text;guanxi,text;wenlike,text;shenfenzhenghao,text;lianxidianhua,text;jiatingdizhi,text;qq,radio;quyu,text;gaokaochengji,float;luquyuanxiao,text;zhuanye,text;shqshijian,datetime;zhuangtai,radio;zizhujine,float;liyou,multitext;banzhuren,htmltext;xuexiaoyijian,htmltext;aieryijian,htmltext;num,int;tijiao,int;shztime,datetime;shjgtime,datetime;zzztime,datetime;yzztime,datetime">
<input type="hidden" name="dede_fieldshash" value="d6b81b41c51fc668b1bcaed3944863ff" />
			 <p style="display:none">
<?php
			$nowtime = GetDateTimeMk(time());
			echo "<input name=\"shqshijian\" value=\"$nowtime\" type=\"hidden\" id=\"shenqingshijian\" >";
			?> 
            <select name='typeid' size='1'>
<option value='10' class='option3' selected=''>─苏萍奖学金</option>
</select></p>   <ul>
                    <li>
                        <span>姓名：</span>
                        <input type="text" class="name"  name='xingming' id='xingming' >
                    </li>
                    <li>
                        <span>身份证号：</span>
                        <input type="text" class="name"  name='shenfenzhenghao' id='shenfenzhenghao'  >
                    </li>
					<li style="display:none">
                        <span>省市区域：</span>
                        <input type="text" class="name"  name='quyu' id='quyu'  >
                    </li>
                    <li>
                        <span>性别：</span>
						<div class="sb">
                        <input type='radio' name='xingbie' class='np xxlx' id='man' value='男'><p>男</p>
<input type='radio' name='xingbie' id='woman' class='np xxlx' value='女'><p>女</p><div style="clear:both;"></div></div>
                    </li>
                    <li>
                        <span>出生日期：</span>
                        <input name="chushengnianyue" value="" type="text" id="chushengnianyue" class="name"/>
                    </li>
                    <li>
                        <span>民族：</span>
                        <input type="text" class="name"  name='minzu' id='minzu'  >
                    </li>
                    <li>
                        <span>联系电话：</span>
                        <input type="text" class="name"  name='lianxidianhua' id='lianxidianhua' >
                    </li>
 <li >
                        <span>照片（请上传2寸证件照）：</span><br/>
               <div class="on1">
                        	<div class="xian"></div>
                 			<div class="chahao"></div>
                        </div> 
                       	<div class="addhao">
                        	<a class="xzbtn">选择文件</a>
               				<input  name="litpic" type="file" id="litpic"   class="fileinput">
            </div>		
            <div></div>
                    </li>
                    <div style="clear:both;"></div>
            		</ul>
                    <button  type="submit"  class="keep">保存</button>
                </form>
            </div>
            <div class="wssq-form">
            	<p>学习情况</p>
<form class="wssq-jbxx" name="addcontent" action="" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();">
          <input type="hidden" name="dopost" value="save" />
          <input type="hidden" name="channelid" value="23" />
    <input type='hidden' name='step' value='2' />
<input type='hidden' name='dede_addonfields' value="gaozhong,text;wenlike,radio;gaokaochengji,text;luquyuanxiao,text;yuanxi,text;zhuanye,text;">
<input type="hidden" name="dede_fieldshash" value="d6b81b41c51fc668b1bcaed3944863ff" />
	 <p style="display:none">
            <select name='typeid' size='1'>
<option value='9' class='option3' selected=''>─爱尔圆梦</option>
</select></p>                 	<ul>
                     <li>
                        <span>高中学校：</span>
                        <input type="text" class="name"  name='gaozhong' id='gaozhong'  >
                    </li>
                    <li>
                        <span>文/理科：</span>
						<div class="sb">
                        <p>
                        <input type='radio' name='wenlike' class='np xxlx' value='文科'   checked="checked"  />文科</p><p>
<input type='radio' name='wenlike' class='np xxlx' value='理科' />理科</p><p>
<input type='radio' name='wenlike' class='np xxlx' value='综合' />综合</p><div style="clear:both;"></div></div>
                    </li>
                    <li>
                        <span>高考成绩：</span>
                        <input type="text" class="name"   name='gaokaochengji' id='gaokaochengji'   >
                    </li>
                    <li>
                        <span>录取院校：</span>
                        <input type="text" class="name"  name='luquyuanxiao' id='luquyuanxiao' >
                    </li>
                    <li>
                        <span>院系：</span>
                        <input type="text" class="name"  name='yuanxi' id='yuanxi' >
                    </li>
                    <li>
                        <span>专业：</span>
                        <input type="text" class="name"    name='zhuanye' id='zhuanye'  >
                    </li>
                    </ul>
                    <button  type="submit" class="keep" onClick="tj();">保存</button>
                </form>
            </div>
	 <div class="wssq-form">	
			<p>家庭情况</p>
 <form class="wssq-jbxx" name="addcontent" action="" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();">
    <input type="hidden" name="dopost" value="save" />
          <input type="hidden" name="channelid" value="28" />
    <input type='hidden' name='step' value='3' />
<input type='hidden' name='dede_addonfields' value="zhengzhimianmao,text;guanxi,text;wenlike,text;jiatingdizhi,text;qq,radio;">
<input type="hidden" name="dede_fieldshash" value="d6b81b41c51fc668b1bcaed3944863ff" />
			 <p style="display:none">
            <select name='typeid' size='1'>
<option value='10' class='option3' selected=''>─苏萍奖学金</option>
</select></p>
            		<ul>
                    <li>
                        <span>监 护 人：</span>
                        <input type="text" class="name"   name='zhengzhimianmao' id='zhengzhimianmao'  >
                    </li>
                    <li>
                        <span>与本人的关系：</span>
                       <input type="text" class="name"   name='guanxi' id='guanxi'  ></li>
                    <li>
                        <span>监护人电话：</span>
                        <input type="text" class="name"  name='wenlike' id='wenlike'    >
                    </li>
                    <li>
                        <span>家庭基本情况：</span>
						<div class="sb">
                        <p>
                        <input type='radio' name='qq' class='np xxlx' value='建档立卡扶贫户' >建档立卡扶贫户</p><p>
<input type='radio' name='qq' class='np xxlx' value='孤儿'>孤儿</p><p>
<input type='radio' name='qq' class='np xxlx' value='单亲'>单亲</p><p>
<input type='radio' name='qq' class='np xxlx' value='残疾'>残疾</p><p>
<input type='radio' name='qq' class='np xxlx' value='无'>无</p>
</div>
                    </li>
                    <li>
                        <span>家庭地址：</span>
                        <input type="text" class="name"   name='jiatingdizhi' id='jiatingdizhi'  >
                    </li>
            		</ul>
	 <button  type="submit"  class="keep" onClick="tj();">保存</button>
                    <div style="clear:both;"></div>
                </form>
        </div>	
            <div class="wssq-form bqjs">
                <img src="/hyxt/m/mimages/wssq_03.jpg">
            	<p>自我鉴定</p>
            <form class="wssq-jbxx" name="addcontent" action="" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();" style="display:block;">
             <input type="hidden" name="dopost" value="save" />
          <input type="hidden" name="channelid" value="28" />
    <input type='hidden' name='step' value='4' />
<input type='hidden' name='dede_addonfields' value="liyou,multitext;">
<input type="hidden" name="dede_fieldshash" value="d6b81b41c51fc668b1bcaed3944863ff" />
			 <p style="display:none">
            <select name='typeid' size='1'>
<option value='10' class='option3' selected=''>─苏萍奖学金</option>
</select></p>
            	<textarea placeholder="自我鉴定"  name='liyou' id='liyou' ></textarea>
                    <button  type="submit"  class="keep" onClick="tj();">保存</button>
            </div>
              </form>  <br/><br/><br/><br/>
        </div>
    </div>
 </div>
</div>
 <script type="text/javascript">
$(".wssq-form p").click(function(){
		$(this).next("form").slideToggle(300).siblings("form").slideUp(300);
	})
</script>
 <!--弹窗开始-->
<div id="myModal2" class="reveal-modal">
<div class="center">
<p class="title" style="display:none;">更换头像</p>
<form action="edit_face.php" method="post" enctype="multipart/form-data" name="form1">
    <input type="hidden" name="dopost" value="save" />
      <div id="mainCp">
        <h3 class="meTitle"><strong>用户头像</strong></h3>
        <div class="postForm">
          <p class="cellBg" style="display:none">
            <label style="width:90px">手工填写网址：</label>
            <input name='oldface' type='hidden' id='oldface' value='<?php echo $face; ?>' />
            <input name='faceurl' type='text' id='faceurl' size='35' class='intxt' style='width:250px' value='<?php echo $face; ?>' />
          <p>
            <label style="display:none;">选择上传的文件：</label>
            <input name="face" type="file" id="face" size="45" />
          </p>
          <p class="cellBg">
            <label style="width:90px"><b>原来的头像：</b></label>
            <div id='faceview' class='overflow mTB10 litPic'>
                 <?php
       					if($face!='') echo " <img class='' src='$face' style='_margin-top:expression(( 180 - this.height ) / 2);' />\r\n";
       			?>
              </div>
          </p>
          <p>
            <button class="export" type="submit">&nbsp;&nbsp;&nbsp;&nbsp;更&nbsp;&nbsp;新&nbsp;&nbsp;&nbsp;&nbsp;</button>
          </p>
    </div>
 </div>
</form> 
</div>
</div>
<!--弹窗结束-->
<script>
// 单张上传照片  删除照片
 $(" .fileinput").change(function () {
      var file = this.files[0];
      readFile(file,$(this).parent().siblings(".on1"));
 });
 $(".on1").mouseover(function () {
      $(this).children(".xian").show();
     $(this).children(".chahao").show();
 });
 $(".on1").mouseleave(function () {
     $(this).children(".xian").hide();
      $(this).children(".chahao").hide();
 });
$(".chahao").click(function () {
     $(this).next().remove();
     $(".xian").hide();
     $(".chahao").hide();
     $(this).parent().hide();
      $(this).parent().siblings(".addhao").show();
     $(this).parent().siblings(".addhao").children().val("");
 });
 var on =document.querySelector(".on1");
 //    需要把阅读的文件传进来file element是把读取到的内容放入的容器
 function readFile(file,element) {
 //        新建阅读器
 var reader = new FileReader();
 //        根据文件类型选择阅读方式
 switch (file.type){
 case 'image/jpg':
 case 'image/png':
 case 'image/jpeg':
 case 'image/gif':
 reader.readAsDataURL(file);
 break;
}
 //        当文件阅读结束后执行的方法
 reader.addEventListener('load',function () {
 //         如果说让读取的文件显示的话 还是需要通过文件的类型创建不同的标签
 switch (file.type){
     case 'image/jpg':
    case 'image/png':
     case 'image/jpeg':
    case 'image/gif':
    var img = document.createElement('img');
    img.src = reader.result;
    element.append(img);
  //  element.siblings(".addhao").hide();
    element.show();
     break;
   }
  });
 }
 // 批量上传部分
 var piliang = document.querySelector('#piliang');
 var on = $(".on1");
 piliang.addEventListener('change',function () {
 for (var i = 0;i < this.files.length;i++){
 var file = this.files[i];
 on.eq(i).children(".chahao").next().remove();
 readFile(file,on.eq(i));
 }
 });
 //
 var on = $(".on1");
 $(".next").click(function () {
    for (var i = 0; i < 10; i++) {
    console.log(on[i].childNodes.length);
   if (on[i].childNodes.length==6){
//这个判断就是说明里面有多少个孩子，孩子不够数，不会生成相册
      }else{
           alert("上传照片不足3张");
          $(".next").attr("href","javascript:void(0)");
           return
            }
     $(".next").attr("href","生成相册.html");
    }
 });
</script>
  <script src="/laydate/laydate.js"></script> 
  <script>
lay('#version').html('-v'+ laydate.v);
//执行一个laydate实例
laydate.render({
  elem: '#chushengnianyue' //指定元素
});
</script>
<script type="text/javascript" src="/js/a.js" charset="utf-8" ></script>
</body>
</html>